﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Collections;
using System.IO;
using System.Globalization;
using Phoenix.Common.Helper;
namespace Phoenix.AdminSite.Controllers
{
    public class UploadController : ControllerBase
    {

        public ActionResult News(HttpPostedFileBase imgFile)
        {
            
            String fileUrl = ImageHelper.UploadFile(imgFile, "/SysFolder/News/");

            return Json(new {error=0,url=fileUrl });
        }

    }
}
